package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TLikesMapper;
import com.ruoyi.system.domain.TLikes;
import com.ruoyi.system.service.ITLikesService;

/**
 * 点赞Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
@Service
public class TLikesServiceImpl implements ITLikesService 
{
    @Autowired
    private TLikesMapper tLikesMapper;

    /**
     * 查询点赞
     * 
     * @param likesId 点赞主键
     * @return 点赞
     */
    @Override
    public TLikes selectTLikesByLikesId(Long likesId)
    {
        return tLikesMapper.selectTLikesByLikesId(likesId);
    }

    /**
     * 查询点赞列表
     * 
     * @param tLikes 点赞
     * @return 点赞
     */
    @Override
    public List<TLikes> selectTLikesList(TLikes tLikes)
    {
        return tLikesMapper.selectTLikesList(tLikes);
    }

    /**
     * 新增点赞
     * 
     * @param tLikes 点赞
     * @return 结果
     */
    @Override
    public int insertTLikes(TLikes tLikes)
    {
        return tLikesMapper.insertTLikes(tLikes);
    }

    /**
     * 修改点赞
     * 
     * @param tLikes 点赞
     * @return 结果
     */
    @Override
    public int updateTLikes(TLikes tLikes)
    {
        return tLikesMapper.updateTLikes(tLikes);
    }

    /**
     * 批量删除点赞
     * 
     * @param likesIds 需要删除的点赞主键
     * @return 结果
     */
    @Override
    public int deleteTLikesByLikesIds(Long[] likesIds)
    {
        return tLikesMapper.deleteTLikesByLikesIds(likesIds);
    }

    /**
     * 删除点赞信息
     * 
     * @param likesId 点赞主键
     * @return 结果
     */
    @Override
    public int deleteTLikesByLikesId(Long likesId)
    {
        return tLikesMapper.deleteTLikesByLikesId(likesId);
    }
}
